/*
 * Antichat Web Tool
 *
 * [C] Great, Antichat.
 *
 * http://antichat.ru
 *
 *
 * Encoder/decoder plugin; coding header
 */

ULONG
UrlEncode (
  LPTSTR lpszInputString,
  LPTSTR lpOutputBuffer,
  SIZE_T nMaxLength,
  BOOL   bEncodeAll
  );

ULONG
UrlDecode (
  LPTSTR lpszInputString,
  LPTSTR lpOutputBuffer,
  SIZE_T nMaxLength
  );

ULONG
Base64Encode (
  LPTSTR lpszInputString,
  LPTSTR lpOutputBuffer,
  SIZE_T nMaxLength
  );

ULONG
Base64Decode (
  LPTSTR lpszInputString,
  LPTSTR lpOutputBuffer,
  SIZE_T nMaxLength
  );

typedef struct {
  ULONG i[2];
  ULONG buf[4];
  unsigned char in[64];
  unsigned char digest[16];
} MD5_CTX;

VOID
Md5Hash (
  LPTSTR lpszInputString,
  LPTSTR lpOutputBuffer
  );

